<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>支付</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/CSS/alipay/alipay.css">
</head>
<body>
<div class="payment-container">
    <div style="width: 100%; height: 400px;">
        <form id="paymentForm">
            <div class="form-item">
                <label for="widout_trade_no">商户订单号：</label>
                <input type="text" id="widout_trade_no" name="widout_trade_no">
            </div>
            <div class="form-item">
                <label for="widsubject">订单名称：</label>
                <input type="text" id="widsubject" name="widsubject">
            </div>
            <div class="form-item">
                <label for="widtotal_amount">付款金额：</label>
                <input type="text" id="widtotal_amount" name="widtotal_amount">
            </div>
            <div class="form-item">
                <label for="widbody">商品描述：</label>
                <input type="text" id="widbody" name="widbody">
            </div>
        </form>
        <button id="payButton" class="pay-button">支付</button>
    </div>
    <!-- 支付宝返回的HTML将在这里渲染 -->
    <div id="payDiv"></div>
</div>
<script src='https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js'></script>
<script src="${pageContext.request.contextPath}/static/JS/alipay/alipay.js"></script>
</body>
</html>